package cn.fintecher.pangolin.entity.elastic;

import cn.fintecher.pangolin.common.utils.Constants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.util.Date;

/** 地区信息
 * @Auther: huyanmin
 * @Date: 2018/12/26
 * @Description:
 */
@Data
@Document(indexName = Constants.AREA_INFORMATION, type = Constants.AREA_INFORMATION, shards = 1, replicas = 0)
@ApiModel(value = "AreaInformation", description = "地区信息")
public class AreaInformation implements Serializable {

    @Id
    private String id;

    @ApiModelProperty("父")
    private String pid;

    @ApiModelProperty(notes = "分公司名称(机构名称)")
    private String level;

    @ApiModelProperty("区名称")
    private String areaName;

    @ApiModelProperty("省")
    private String provinceName;

    @ApiModelProperty("市")
    private String cityName;

    @ApiModelProperty("区")
    private String area;

    @ApiModelProperty("省名称拼音")
    private String provinceSpell;

    @ApiModelProperty("市名称拼音")
    private String citySpell;

    @ApiModelProperty("区全部拼音")
    private String areaFullSpell;

    @ApiModelProperty("地区名简写")
    private String regionalSimplicity;

    @ApiModelProperty("地区首字母")
    private String regionalFirstWord;

    @ApiModelProperty("地区号")
    private String areaCode;

    @ApiModelProperty("地区邮编")
    private String postCode;

    @ApiModelProperty("经度")
    private Double Longitude;

    @ApiModelProperty("纬度")
    private Double latitude;

    @ApiModelProperty("行政标注")
    private String administration;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("备用1")
    private String remark1;

    @ApiModelProperty("备用2")
    private String remark2;

    @ApiModelProperty("备用3")
    private String remark3;


    @ApiModelProperty("创建时间")
    private Date operatorTime;

}
